using Brouteforce.NewManagers;
using Brouteforce.Screens.PlayingScreen.Panels;
using Brouteforce.UserInterface.Abstracts;
using Microsoft.Xna.Framework;

namespace Brouteforce.Screens.CreateNewCharacterScreen {
    /// <summary>
    /// This is a game component that implements IUpdateable.
    /// </summary>
    public class CreateNewCharacterScreen : AbstractScreen {
        public CreateNewCharacterScreen()
            : base("CreateNewCharacterScreen", false, BFGame.Instance.GraphicsDevice.Viewport.Bounds)
        {
            AbstractPanel CreateNewCharacterPanel = new CreateNewCharacterPanel();
            AbstractPanel PlayerStatusPanel = new PlayerStatusPanel(false);
            AddPanel(CreateNewCharacterPanel, PanelLocation.Center, -1);
            AddPanel(PlayerStatusPanel, PanelLocation.Bottom, 150);
            
        }


        public void Update(GameTime gameTime) {
            foreach (AbstractPanel panel in Panels) {
                if (InputManager.Instance.IsMouseClickedOn(panel.Bounds)) {
                    panel.Update(gameTime);
                }
            }
        }

    }
}
